package ch10_thread.thread;

/**
 * 线程名称
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public class ThreadName {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
        }, "aa");
        thread.setName("bb");
        System.out.println(thread.getName());
    }
}
